{% extends 'user_base.html' %}
{% block content %}
    <div class="container" style="margin-top: 50px">
        {# 按钮 #}
        <div style="margin-bottom: 10px" class="clearfix"><a href="/user/recharge">
            <button type="button" class="btn btn-primary btn-lg">
                充值
            </button>
        </a>
            <div style="width: 300px;float: right"></div>
        </div>

        {# 面板 #}
        <div class="panel-body">
            {# 表格 #}
            <div class="panel panel-default">
                <!-- Default panel contents -->
                <div class="panel-heading">历史充值</div>

                <!-- Table -->
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th>订单号</th>
                        <th>金额</th>

                    </tr>
                    </thead>
                    <tbody>
                    {% for obj in queryset %}
                        <tr>
                            <td>{{ obj.oid }}</td>
                            <td>{{ obj.price }}</td>

                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
            </div>

        </div>

        {# 分页 #}
        <div>
            <nav aria-label="Page navigation">
                <ul class="pagination">
                    {{ page_string }}
                </ul>
            </nav>
        </div>

    </div>

{% endblock %}

{% block js %}
    <script type="text/javascript">


    </script>
{% endblock %}
